<?php
/**
 * Interfaccia per l'accesso ai metodi di una base dati
 *
 * @author Fabrizio Filieri
 */
interface Database
{
    public function connect($config);

	public function close();

	public function beginTransaction();

	public function commit();

	public function rollback();

	public function prepareQuery($query);

	public function bindParamInt($param, $value);

	public function bindParamString($param, $value);

	public function bindParamBoolean($param, $value);

	public function bindParamGeneric($param, $value);

	public function execute();

	public function exec($query);

	public function query($query);

	public function getLastError();

	public function getResult();

	public function getNumRows();

	public function getLastInsertId();

	public function getArrayAssocResult();

	public function getFetchAll();

}

?>
